﻿using System;


namespace CoreLims.Models.CoreLims
{
    public sealed partial class SPL
    {

        /// <summary>
        /// 采样记录表
        /// </summary>
        public partial class Sampling
        {
            public string Id { get; set; }

            /// <summary>
            /// 采样点ID
            /// </summary>
            public string SamplingPointId { get; set; }

            /// <summary>
            /// 采样要求ID
            /// </summary>
            public string RequirementsId { get; set; }

            /// <summary>
            /// 采样时间
            /// </summary>
            public DateTime SamplingTime { get; set; }

            /// <summary>
            /// 库存ID
            /// </summary>
            public string InventoryId { get; set; }
            /// <summary>
            /// 采样人ID
            /// </summary>
            public string SamplingPersonId { get; set; }

            /// <summary>
            /// 采样人姓名
            /// </summary>
            public string SamplingPersonName { get; set; }

        }

        /// <summary>
        /// 采样要求
        /// </summary>
        public partial class Requirements
        {
            public string Id { get; set; }

            /// <summary>
            /// 名称
            /// </summary>
            public string Name { get; set; }

            /// <summary>
            /// 采样说明
            /// </summary>
            public string Description { get; set; }

            /// <summary>
            /// 样品类型 液体/固体/气体
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// 材料代码
            /// </summary>
            public string MaterialCode { get; set; }

            /// <summary>
            /// 容器ID
            /// </summary>
            public int ContainerId { get; set; }

            /// <summary>
            /// 容器名称
            /// </summary>
            public int ContainerName { get; set; }

            /// <summary>
            /// 容器使用数量
            /// </summary>
            public int NumberOfContainer { get; set; }

            /// <summary>
            /// 每容器取样量
            /// </summary>
            public decimal Volume { get; set; }

            /// <summary>
            /// 单位
            /// </summary>
            public string UnitCode { get; set; }

            /// <summary>
            /// 样品送往
            /// </summary>
            public string SendTo { get; set; }

            /// <summary>
            /// 存储环境
            /// </summary>
            public string StorageEnvironment { get; set; }

            /// <summary>
            /// 是否创建库存
            /// </summary>
            public bool IsInventory { get; set; }

            /// <summary>
            /// 是否分样
            /// </summary>
            public bool IsSeparation { get; set; }

        }

        /// <summary>
        /// 采样容器
        /// </summary>
        public partial class Container
        {
            public string Id { get; set; }

            /// <summary>
            /// 容器编码
            /// </summary>
            public string Code { get; set; }

            /// <summary>
            /// 容器名称
            /// </summary>
            public string Name { get; set; }

            /// <summary>
            /// 规格
            /// </summary>
            public string Specifications { get; set; }

            /// <summary>
            /// 型号
            /// </summary>
            public string Model { get; set; }

            /// <summary>
            /// 容器类型
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// 容器描述
            /// </summary>
            public string Description { get; set; }

            /// <summary>
            /// 容器容量
            /// </summary>
            public decimal Capacity { get; set; }

            /// <summary>
            /// 容量单位
            /// </summary>
            public string UnitCode { get; set; }

            /// <summary>
            /// 供应商ID
            /// </summary>
            public string SupplierId { get; set; }

            /// <summary>
            /// 供应商名称
            /// </summary>
            public string SupplierName { get; set; }

            /// <summary>
            /// 是否消耗库存，如果是则在采样操作后，系统会根据容器代码和采样要求中的容器使用数量，在库存中进行扣除。
            /// </summary>
            public bool Destocking { get; set; }

            /// <summary>
            /// 子容器ID
            /// </summary>
            public string SubContainerId { get; set; }

            /// <summary>
            /// 子容器数量
            /// </summary>
            public int NumberOfSubContainer { get; set; }
        }

    }
}
